var request = require('request');
var url ='http://ip.jsontest.com/?callback=showMyIP';
request(url, function (error, response, body) {
  if (!error && response.statusCode == 200) {
      console.log(JSON.parse(body.substring(9,body.length-3)));
  } else {
      console.log(error);
  }
})
